{include file='yxworker/w_head2'}

<!--         <div class="s_items s_bg lm_items">

            <div class="lm_btn">
                <img src="{$_G['URL']['WORKER_CSS']}images/lm_03.png">新增团队
            </div>
        </div>
 -->
    {if empty($op) }
        <header class="order_header" style="font-size: 0.4rem;">
            <div class="go_back">
                <a style="color: #ffffff" href="/{php echo createMobileUrl('w_index',array('themeid'=>$themeid));}">
                <img src="{$_G['URL']['WORKER_CSS']}images/order_03.png">
                返回首页</a>
            </div>
            {php echo empty($shop)?'':mb_substr($shopname,0,4,'utf-8').'-';}个人排名
        </header>
        <div class="s_items">
            <div class="s_title" >
                <div style="width: 68%; display: inline-block;" >
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                个人总排行榜{if !empty($notworker)}【{$notworker}个定单无客服】{/if}</div>
            </div>
            <!--  -->
            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                    <tr>
                        <td style="width: 2%;"></td>
                        <td style="width: 8%;color: #198bcb; text-align: right;">排名</td>
                        <td style="width: 15%;color: #198bcb">姓名</td>
                        <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                        <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                        <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                        <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                        {/if}
                        <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                        <td style="width: 2%;"></td>
                    </tr> 
                </thead>
                <tbody>
                    {loop $team $index $row}
                    <tr>
                        <td> </td>
                        <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                        {if $myworker['level'] != '3'}
                        <td><a style="color: #198bcb;" href="/{php echo createMobileUrl('w_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}">{php echo mb_substr($row['name'],0,4,'utf-8');}</a></td>
                        {else}
                        <td style="color: #198bcb">{php echo mb_substr($row['name'],0,4,'utf-8');}</td>
                        {/if}
                        <td >{$row['newfans']}</td>
                        <td style="color: #198bcb">{$row['forward']}</td>
                        <td >{$row['scansum']}</td>
                        <td style="color: #198bcb">{$row['record']}</td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td>{$row['recordxx']}</td>
                        {/if}
                        <td style="color: #198bcb">{$row['fee']}</td>
                        <td> </td>
                    </tr>
                    {/loop}                 
                </tbody>
            </table>

        </div>


        <div class="s_items">
            <div class="s_title" >
                <div style="width: 48%;display: inline-block;" >
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                个人今日排行榜</div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                    <tr>
                        <td style="width: 2%;"></td>
                        <td style="width: 8%;color: #198bcb; text-align: right;">排名</td>
                        <td style="width: 15%;color: #198bcb">姓名</td>
                        <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                        <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                        <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                        <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                        {/if}
                        <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                        <td style="width: 2%;"></td>
                    </tr> 
                </thead>
                <tbody>
                    {loop $teamtoday $index $row}
                    <tr>
                        <td> </td>
                        <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                        {if $myworker['level'] != '3'}
                        <td><a style="color: #198bcb;" href="/{php echo createMobileUrl('w_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}">{php echo mb_substr($row['name'],0,4,'utf-8');}</a></td>
                        {else}
                        <td style="color: #198bcb">{php echo mb_substr($row['name'],0,4,'utf-8');}</td>
                        {/if}
                        <td >{$row['newfans']}</td>
                        <td style="color: #198bcb">{$row['forward']}</td>
                        <td >{$row['scansum']}</td>
                        <td style="color: #198bcb">{$row['record']}</td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td>{$row['recordxx']}</td>
                        {/if}
                        <td style="color: #198bcb">{$row['fee']}</td>
                        <td> </td>
                    </tr>
                    {/loop}                 
                </tbody>
            </table>
        </div>


        <div class="s_items">
            <div class="s_title" >
                <div style="width: 48%;display: inline-block;" >
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                个人昨日排行榜</div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                    <tr>
                        <td style="width: 2%;"></td>
                        <td style="width: 8%;color: #198bcb; text-align: right;">排名</td>
                        <td style="width: 15%;color: #198bcb">姓名</td>
                        <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                        <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                        <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                        <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                        {/if}
                        <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                        <td style="width: 2%;"></td>
                    </tr> 
                </thead>
                <tbody>
                    {loop $teamyesterday $index $row}
                    <tr>
                        <td> </td>
                        <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                        {if $myworker['level'] != '3'}
                        <td><a style="color: #198bcb;" href="/{php echo createMobileUrl('w_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}">{php echo mb_substr($row['name'],0,4,'utf-8');}</a></td>
                        {else}
                        <td style="color: #198bcb">{php echo mb_substr($row['name'],0,4,'utf-8');}</td>
                        {/if}
                        <td >{$row['newfans']}</td>
                        <td style="color: #198bcb">{$row['forward']}</td>
                        <td >{$row['scansum']}</td>
                        <td style="color: #198bcb">{$row['record']}</td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td>{$row['recordxx']}</td>
                        {/if}
                        <td style="color: #198bcb">{$row['fee']}</td>
                        <td> </td>
                    </tr>
                    {/loop}                 
                </tbody>
            </table>

        </div>


        <div class="s_items">
            <div class="s_title" >
                <div style="width: 48%;display: inline-block;" >
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                个人前日排行榜</div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                    <tr>
                        <td style="width: 2%;"></td>
                        <td style="width: 8%;color: #198bcb; text-align: right;">排名</td>
                        <td style="width: 15%;color: #198bcb">姓名</td>
                        <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                        <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                        <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                        <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                        {/if}
                        <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                        <td style="width: 2%;"></td>
                    </tr> 
                </thead>
                <tbody>
                    {loop $teambeforeyesterday $index $row}
                    <tr>
                        <td> </td>
                        <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                        {if $myworker['level'] != '3'}
                        <td><a style="color: #198bcb;" href="/{php echo createMobileUrl('w_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}">{php echo mb_substr($row['name'],0,4,'utf-8');}</a></td>
                        {else}
                        <td style="color: #198bcb">{php echo mb_substr($row['name'],0,4,'utf-8');}</td>
                        {/if}
                        <td >{$row['newfans']}</td>
                        <td style="color: #198bcb">{$row['forward']}</td>
                        <td >{$row['scansum']}</td>
                        <td style="color: #198bcb">{$row['record']}</td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td>{$row['recordxx']}</td>
                        {/if}
                        <td style="color: #198bcb">{$row['fee']}</td>
                        <td> </td>
                    </tr>
                    {/loop}                 
                </tbody>
            </table>

        </div>
    {/if}
        <div class="item" style="padding: 0.5rem; line-height: 0.4rem;text-align: center;">
            <p>未出现在排行榜中的，代表当日没有任何宣传。</p>
            <p style="color: #198bcb">点击标题可按关键字排名</p>
            <p>点击姓名可查该员工的日报</p>
            <!-- <p>点击成交数字可查对应数据</p> -->
        </div>
<script>
    $('.lm_table tr').click(function(){
        console.log(1);
        $(this).next('.sib').toggle();
    })
</script>
<style>
.pd0 { padding-bottom:0;}
.pd0 tr:last-child td { border-bottom:none;}
.sib { display:none;}
</style>
{include file='yxworker/w_foot_yixuan'}